<template>
  <div>
    <DetailPage
      v-bind="detailConfig"
      :model="ExtendMod"
      style="width: 98%; margin: 0 auto">
      <template v-slot:certificateList="{ row }">
        <ApldTable
          :columns="row.column"
          :data="props.nowRowData.certificates">
        </ApldTable>
      </template>
    </DetailPage>
  </div>
</template>

<script setup lang="ts">
// import {  onMounted } from 'vue'
import { ApldTable } from '@/components/AplidCrud'
import DetailPage from '@/views/aplid/DetailPage/index.vue'
import { detailConfig } from '../config'
// import apiMod from '@/apiMod/index'
type Props = {
  nowRowData?: any,
}
const props = withDefaults(defineProps<Props>(), {})
console.log('拿到对应数据',props.nowRowData)
// let rowData: any = ref([])

const ExtendMod = props.nowRowData
// 拿到初始化花名册数据
// let getInitData = () =>{
//   let data = {
//     organizationName:props.nowRowData.organizationName,
//     headId: props.nowRowData.id,
//     pageParaPO:{
//       current:1,
//       size:100000000
//     },
//     code:3010
//   }
//   apiMod.dpPractitionersSubsidyCertificate_page(data).then(res=>{
//     rowData.value = res.data.records
//   })
// }

// onMounted(()=>{
//   getInitData()
// })
</script>
<style scoped lang="scss"></style>